#pragma once
#include "mytypes.h"
#include "interfaces.h"

namespace poly
{
	class CircleView : public IGraphic
	{
	public:
		CircleView( D3DDevice device = 0 );
		~CircleView();
		void initialize( D3DDevice device );
		void destroy();

		void setup( float radius, uint32 segments, float4 const & c );

		void render( float44 const & );

	private:
		float			m_radius;
		uint32			m_segments;
		float4			m_color;
		D3DDevice		m_device;
		VertexBuffer	m_vertexBuffer;

		static const DWORD FVF;
		static const uint32 vertexSize;
	};
}
